package com.example.administrator.managesystem.view;
import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.administrator.managesystem.R;

/**
 * Created by Administrator on 2019/1/7.
 */
public class CertifyDialog extends Dialog {

   private LinearLayout sure;

    //构造方法
    public  CertifyDialog(Context context) {

        //设置对话框样式
        super(context, R.style.mdialog);

        //通过LayoutInflater获取布局
        View view = LayoutInflater.from(getContext()).inflate(R.layout.dialog_certify_success, null);
          sure=view.findViewById(R.id.sure_ll);
         setContentView(view);  //设置显示的视图
    }

    public void setOnSureListener(View.OnClickListener listener) {
        sure.setOnClickListener(listener);
    }


}
